package com.sinitek.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @program: elastic
 * @description:
 * @author: Mr.chen
 * @create: 2019-04-25 18:28
 */
@Data
@ToString
@Document(indexName = "bank", type = "account")
public class Account implements Serializable {

    @Id
    @ApiModelProperty(notes = "账户编号", example = "25")
    private Long account_number;
    @ApiModelProperty(notes = "账户余额", example = "40540")
    private Long balance;
    private String firstname;
    private String lastname;
    @ApiModelProperty(notes = "年龄", example = "38")
    private Integer age;
    @ApiModelProperty(notes = "性别", example = "F")
    private String gender;
    @ApiModelProperty(notes = "地址", example = "171 Putnam Avenue")
    private String address;
    @ApiModelProperty(notes = "雇用者", example = "Filodyne")
    private String employer;
    @ApiModelProperty(notes = "邮箱", example = "virginiaayala@filodyne.com")
    private String email;
    @ApiModelProperty(notes = "城市", example = "Nicholson")
    private String city;
    @ApiModelProperty(notes = "状态")
    private String state;
}
